package com.sservice.service.service;

import com.sservice.banfu.e.SaleInfo;
import com.sservice.banfu.e.SalePerson;
import com.sservice.banfu.vo.SalePersonVo;

import java.util.List;

public interface ISalePersonService {

    SalePerson queryUserByPhone(String phone);

    /**
     * 竞拍团队详情
     *
     * @param auctionRegister
     * @return
     */

    /**
     * 分页查询:关键字，手机号、字段升降序、每页显示大小，某一页
     * 默认进行每页15个显示
     *
     * @param user
     * @return
     */
    List<SalePerson> queryByPage(SalePerson user);

    /**
     * 我的销售员
     *
     * @param user
     * @return
     */
    List<SalePerson> queryByUserIdAndPage(SalePerson user);

    int queryCount(SalePerson user);

    int deleteByPrimaryKey(Integer id);

    int insert(SalePerson record);

    int insertSelective(SalePerson record);


    SalePerson selectByPhone(SalePerson user);

    SaleInfo selectByOpenid(String openid);

    SalePerson selectOneById(int id);


    int updateByPrimaryKeySelective(SalePerson record);

    /**
     * 销售经理分页查询
     *
     * @param sp
     * @return
     */
    List<SalePerson> querySaleManager(SalePersonVo sp);

    int querySaleManagerCount(SalePerson sp);


    /***
     * 销售交易额数量
     * @param user
     * @return
     */
    int querySaleCashCount(SalePerson user);

    /**
     * 销售交易额分页
     *
     * @param user
     * @return
     */
    List<SalePerson> querySaleCashByPage(SalePerson user);


}
